<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title> {if !empty($Request.param.id)}{$info.title}{else}帮助首页{/if} - 帮助中心 - {$settings.site.sitename}</title>
 {include file="public/css"}
</head>
<body>
{include file="public/header"}

<div class="layui-main info-main">
<!-- 左侧分类导航 -->
  <div class="info-left-menu">
  <h2>{$cateData.cname}</h2>
     <ul class="layui-nav layui-nav-tree" lay-filter="test">
       {volist name="list" id="vo"}
		  <li class="layui-nav-item layui-nav-itemed">
		    <a href="javascript:;">{$vo.cname}</a>
		    <dl class="layui-nav-child">
		       {volist name="vo.article_list" id="vo1"}
          <dd {if $Request.param.id == $vo1.id} class="layui-this" {/if}>
            <a href="{:url('@guarantee/info/list',['alias1'=>$Request.param.alias1,'id'=>$vo1.id])}">
                {$vo1.title}</a></dd>
		       {/volist}
		    </dl>
		  </li>
		 {/volist}

		</ul>
  </div>

<!-- 右侧文章 -->
  <div class="info-right-list">
   {if !empty($Request.param.id)}
     <div class="info-right-content">
            <div class="layui-card-header title">
              <h1>{$info.title}</h1>
              <div class="c-title">更新时间：{$info.update_time|date="Y-m-d"}  阅读：{$info.hits}</div>
            </div>
          <div class="info-content">
              {:htmlspecialchars_decode($info.content)}
          </div>
        </div>
   {else}

  <!-- 右侧文章列表 -->
    <div class="info-right-list">
        <div class="list" >
            {volist name="info_list" id="vo"}
            <div class="info-list" >
              <a href="{:url('@guarantee/info/list',['alias1'=>$Request.param.alias1,'id'=>$vo.id])}" title="{$vo.title}">{$vo.title}</a>
            </div>
            {/volist}
       </div>
      <div id="pages">{$page|raw}</div>
    </div>

   {/if}


 

  </div>

</div>





{include file="public/footer"}
{include file="public/js"} 
<script>

layui.use(['layer', 'form'], function(){
  var layer = layui.layer
  ,form = layui.form;
  

});
</script>

</body>
</html>